package com.trkj.dao.jpa;

import java.math.BigDecimal;
import java.util.List;

import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import com.trkj.pojos.CcElectornicCheck;

public interface CcElectornicCheckDAO extends CrudRepository<CcElectornicCheck, Long> {

	@Query("select c from CcElectornicCheck c  where c.eleTid=?1")
	public List<CcElectornicCheck> queryByEleId(BigDecimal eleTid);
	@Query("select c from CcElectornicCheck c  where c.eleTid=?1 and c.elecname=?2")
	public CcElectornicCheck queryByEleIdandD(BigDecimal eleId,BigDecimal elecname);
	@Query("select c from CcElectornicCheck c ")
	public List<CcElectornicCheck> queryByAll(Pageable pageable);
}
